<?php 
class controller_user extends controller{
	
	public function pageAdmin($param){
		$classUser = Import::loadClass('user','library/user/');
		$param['dataUser'] = $classUser->getList();
		
		return 'library/user/views/admin/page.tpl.php';
	}
	
	public function pageAdminAdd($param){
		return 'library/user/views/admin/page-add.tpl.php';
	}
	
	public function pageAdminAdd_post($param){
		$data = $_POST;
		$classUser = Import::loadClass('user','library/user/');
		$classUser->create($data['user']);
		
		return 'library/user/views/admin/page-add.tpl.php';
	}
	
	function getSingleton (){
		return true;
	}
	
}
?>